package com.xy.composite;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/6/12 17:03
 * @description
 */
public class HashMapTest {
    public static void main(String[] args) {
        Map<Integer, String> map = new HashMap<>();
        map.put(0,"东游记");

        Map<Integer, String> map2 = new HashMap<>();
        map.put(1,"西游记");
        map.put(2,"南游记");
        map.putAll(map2);
        map.entrySet().forEach(System.out::println);

    }
}
